package com.wuxb.masterWorker;

public class MyWorker extends Worker<Task> {
    @Override
    public Integer handle(Task task) {
        Integer resultCount = 0;
        try {
            Thread.sleep(500);
            resultCount = task.getPrice();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return resultCount;
    }
}
